import http from "@/api/http";

export function getPage(query: object) {
  return http.get({
    url: "/content/attach/file/page",
    params: query
  });
}

export function getFile(id: number) {
  return http.get({
    url: "/content/attach/file/" + id
  });
}

export function updateFile(obj: object) {
  return http.put({
    url: "/content/attach/file",
    data: obj
  });
}

export function moveGroup(obj: object) {
  return http.put({
    url: "/content/attach/file/move",
    data: obj
  });
}

export function delFiles(ids: any) {
  return http.delete({
    url: "/content/attach/file/" + ids
  });
}
